package jmu.cze.service;

import jmu.cze.vo.Message;
import jmu.cze.vo.Note;
import jmu.cze.vo.Revert;

import java.util.List;

public interface NoteService {
    public List<Note> getNotes(int page, int limit);
    public List<Note> searchNotes(String keyword);
    public List<Message> getMessageByPage(int productID, int page, int limit);
    public List<Revert> getRevertByMessageID(int messageId);
    public int countMessage();
    public int countRevert();
    public boolean updateMessage(Message message);
    public boolean addMessage(Message message);
    public boolean deleteMessage(int messageId);
    public boolean deleteMessage(int messageId, String writerID);
    public boolean updateRevert(Revert revert);
    public boolean addRevert(Revert revert);
    public boolean deleteRevert(int revertId);
    public boolean deleteRevert(int revertId, String writerID);
}